FROM golang:alpine

RUN apk update && apk add git gcc libc-dev make

ENV GO111MODULE=auto

ENV CGO_ENABLED=0
ENV GOOS=linux
ENV GOARCH=amd64

ENV GOPROXY=https://goproxy.cn
ENV GOSUMDB=sum.golang.org

VOLUME /data

WORKDIR /data

CMD ["/bin/sh"]